public class Main {
    public static void main(String[] args) {
        EagerSingletonFactoryLogger.getInstance().setLoggerName("饥饿的大学生");
        System.out.println(EagerSingletonFactoryLogger.getInstance().shoInfo());
        System.out.println(EagerSingletonFactoryLogger.getInstance().getLoggerName());
        System.out.println(EagerSingletonFactoryLogger.getInstance().shoInfo());

        System.out.println(LazySingletonFactoryLogger.getInstance().showInfo());
        System.out.println(LazySingletonFactoryLogger.getInstance().showInfo());
    }
}
